package mock

import (
	"fmt"
)

/**
定义一个结构体
*/
type FileDownload struct {
	Content string
}

func (download FileDownload) Upload(uploadUrl string, uploadData map[string]int) {
	fmt.Println("file upload", uploadData)
}

func (download FileDownload) TotalFileSize() int64 {
	return 999999999999
}

/**
实现下载接口
*/
func (download FileDownload) Download(url string) string {
	fmt.Println("mock start download from ", url)
	return download.Content
}
